using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class FriendInfo : GeneratedMessageLite<FriendInfo, FriendInfo.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<FriendInfo, FriendInfo.Builder>
		{
			private bool resultIsReadOnly;
			private FriendInfo result;
			protected override FriendInfo.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override FriendInfo MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override FriendInfo DefaultInstanceForType
			{
				get
				{
					return FriendInfo.DefaultInstance;
				}
			}
			public string DisplayUserName
			{
				get
				{
					return this.result.DisplayUserName;
				}
				set
				{
					this.SetDisplayUserName(value);
				}
			}
			public string DisplayNickName
			{
				get
				{
					return this.result.DisplayNickName;
				}
				set
				{
					this.SetDisplayNickName(value);
				}
			}
			public string DisplayRemark
			{
				get
				{
					return this.result.DisplayRemark;
				}
				set
				{
					this.SetDisplayRemark(value);
				}
			}
			public string WXUserName
			{
				get
				{
					return this.result.WXUserName;
				}
				set
				{
					this.SetWXUserName(value);
				}
			}
			public string WXNickName
			{
				get
				{
					return this.result.WXNickName;
				}
				set
				{
					this.SetWXNickName(value);
				}
			}
			public string WXRemark
			{
				get
				{
					return this.result.WXRemark;
				}
				set
				{
					this.SetWXRemark(value);
				}
			}
			public uint Type
			{
				get
				{
					return this.result.Type;
				}
				set
				{
					this.SetType(value);
				}
			}
			public uint Status
			{
				get
				{
					return this.result.Status;
				}
				set
				{
					this.SetStatus(value);
				}
			}
			public string Source
			{
				get
				{
					return this.result.Source;
				}
				set
				{
					this.SetSource(value);
				}
			}
			public uint MatchField
			{
				get
				{
					return this.result.MatchField;
				}
				set
				{
					this.SetMatchField(value);
				}
			}
			public string Alias
			{
				get
				{
					return this.result.Alias;
				}
				set
				{
					this.SetAlias(value);
				}
			}
			public Builder()
			{
				this.result = FriendInfo.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(FriendInfo cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private FriendInfo PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					FriendInfo other = this.result;
					this.result = new FriendInfo();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override FriendInfo.Builder Clear()
			{
				this.result = FriendInfo.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override FriendInfo.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new FriendInfo.Builder(this.result);
				}
				return new FriendInfo.Builder().MergeFrom(this.result);
			}
			public override FriendInfo BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override FriendInfo.Builder MergeFrom(IMessageLite other)
			{
				if (other is FriendInfo)
				{
					return this.MergeFrom((FriendInfo)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override FriendInfo.Builder MergeFrom(FriendInfo other)
			{
				return this;
			}
			public override FriendInfo.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override FriendInfo.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(FriendInfo._friendInfoFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = FriendInfo._friendInfoFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 42u)
					{
						if (num3 <= 18u)
						{
							if (num3 == 0u)
							{
								throw InvalidProtocolBufferException.InvalidTag();
							}
							if (num3 == 10u)
							{
								this.result.hasDisplayUserName = input.ReadString(ref this.result.displayUserName_);
								continue;
							}
							if (num3 == 18u)
							{
								this.result.hasDisplayNickName = input.ReadString(ref this.result.displayNickName_);
								continue;
							}
						}
						else
						{
							if (num3 == 26u)
							{
								this.result.hasDisplayRemark = input.ReadString(ref this.result.displayRemark_);
								continue;
							}
							if (num3 == 34u)
							{
								this.result.hasWXUserName = input.ReadString(ref this.result.wXUserName_);
								continue;
							}
							if (num3 == 42u)
							{
								this.result.hasWXNickName = input.ReadString(ref this.result.wXNickName_);
								continue;
							}
						}
					}
					else
					{
						if (num3 <= 64u)
						{
							if (num3 == 50u)
							{
								this.result.hasWXRemark = input.ReadString(ref this.result.wXRemark_);
								continue;
							}
							if (num3 == 56u)
							{
								this.result.hasType = input.ReadUInt32(ref this.result.type_);
								continue;
							}
							if (num3 == 64u)
							{
								this.result.hasStatus = input.ReadUInt32(ref this.result.status_);
								continue;
							}
						}
						else
						{
							if (num3 == 74u)
							{
								this.result.hasSource = input.ReadString(ref this.result.source_);
								continue;
							}
							if (num3 == 80u)
							{
								this.result.hasMatchField = input.ReadUInt32(ref this.result.matchField_);
								continue;
							}
							if (num3 == 90u)
							{
								this.result.hasAlias = input.ReadString(ref this.result.alias_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public FriendInfo.Builder SetDisplayUserName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasDisplayUserName = true;
				this.result.displayUserName_ = value;
				return this;
			}
			public FriendInfo.Builder ClearDisplayUserName()
			{
				this.PrepareBuilder();
				this.result.hasDisplayUserName = false;
				this.result.displayUserName_ = "";
				return this;
			}
			public FriendInfo.Builder SetDisplayNickName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasDisplayNickName = true;
				this.result.displayNickName_ = value;
				return this;
			}
			public FriendInfo.Builder ClearDisplayNickName()
			{
				this.PrepareBuilder();
				this.result.hasDisplayNickName = false;
				this.result.displayNickName_ = "";
				return this;
			}
			public FriendInfo.Builder SetDisplayRemark(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasDisplayRemark = true;
				this.result.displayRemark_ = value;
				return this;
			}
			public FriendInfo.Builder ClearDisplayRemark()
			{
				this.PrepareBuilder();
				this.result.hasDisplayRemark = false;
				this.result.displayRemark_ = "";
				return this;
			}
			public FriendInfo.Builder SetWXUserName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasWXUserName = true;
				this.result.wXUserName_ = value;
				return this;
			}
			public FriendInfo.Builder ClearWXUserName()
			{
				this.PrepareBuilder();
				this.result.hasWXUserName = false;
				this.result.wXUserName_ = "";
				return this;
			}
			public FriendInfo.Builder SetWXNickName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasWXNickName = true;
				this.result.wXNickName_ = value;
				return this;
			}
			public FriendInfo.Builder ClearWXNickName()
			{
				this.PrepareBuilder();
				this.result.hasWXNickName = false;
				this.result.wXNickName_ = "";
				return this;
			}
			public FriendInfo.Builder SetWXRemark(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasWXRemark = true;
				this.result.wXRemark_ = value;
				return this;
			}
			public FriendInfo.Builder ClearWXRemark()
			{
				this.PrepareBuilder();
				this.result.hasWXRemark = false;
				this.result.wXRemark_ = "";
				return this;
			}
			public FriendInfo.Builder SetType(uint value)
			{
				this.PrepareBuilder();
				this.result.hasType = true;
				this.result.type_ = value;
				return this;
			}
			public FriendInfo.Builder ClearType()
			{
				this.PrepareBuilder();
				this.result.hasType = false;
				this.result.type_ = 0u;
				return this;
			}
			public FriendInfo.Builder SetStatus(uint value)
			{
				this.PrepareBuilder();
				this.result.hasStatus = true;
				this.result.status_ = value;
				return this;
			}
			public FriendInfo.Builder ClearStatus()
			{
				this.PrepareBuilder();
				this.result.hasStatus = false;
				this.result.status_ = 0u;
				return this;
			}
			public FriendInfo.Builder SetSource(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasSource = true;
				this.result.source_ = value;
				return this;
			}
			public FriendInfo.Builder ClearSource()
			{
				this.PrepareBuilder();
				this.result.hasSource = false;
				this.result.source_ = "";
				return this;
			}
			public FriendInfo.Builder SetMatchField(uint value)
			{
				this.PrepareBuilder();
				this.result.hasMatchField = true;
				this.result.matchField_ = value;
				return this;
			}
			public FriendInfo.Builder ClearMatchField()
			{
				this.PrepareBuilder();
				this.result.hasMatchField = false;
				this.result.matchField_ = 0u;
				return this;
			}
			public FriendInfo.Builder SetAlias(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasAlias = true;
				this.result.alias_ = value;
				return this;
			}
			public FriendInfo.Builder ClearAlias()
			{
				this.PrepareBuilder();
				this.result.hasAlias = false;
				this.result.alias_ = "";
				return this;
			}
		}
		public const int DisplayUserNameFieldNumber = 1;
		public const int DisplayNickNameFieldNumber = 2;
		public const int DisplayRemarkFieldNumber = 3;
		public const int WXUserNameFieldNumber = 4;
		public const int WXNickNameFieldNumber = 5;
		public const int WXRemarkFieldNumber = 6;
		public const int TypeFieldNumber = 7;
		public const int StatusFieldNumber = 8;
		public const int SourceFieldNumber = 9;
		public const int MatchFieldFieldNumber = 10;
		public const int AliasFieldNumber = 11;
		private static readonly FriendInfo defaultInstance;
		private static readonly string[] _friendInfoFieldNames;
		private static readonly uint[] _friendInfoFieldTags;
		private bool hasDisplayUserName;
		private string displayUserName_ = "";
		private bool hasDisplayNickName;
		private string displayNickName_ = "";
		private bool hasDisplayRemark;
		private string displayRemark_ = "";
		private bool hasWXUserName;
		private string wXUserName_ = "";
		private bool hasWXNickName;
		private string wXNickName_ = "";
		private bool hasWXRemark;
		private string wXRemark_ = "";
		private bool hasType;
		private uint type_;
		private bool hasStatus;
		private uint status_;
		private bool hasSource;
		private string source_ = "";
		private bool hasMatchField;
		private uint matchField_;
		private bool hasAlias;
		private string alias_ = "";
		private int memoizedSerializedSize = -1;
		public static FriendInfo DefaultInstance
		{
			get
			{
				return FriendInfo.defaultInstance;
			}
		}
		public override FriendInfo DefaultInstanceForType
		{
			get
			{
				return FriendInfo.DefaultInstance;
			}
		}
		protected override FriendInfo ThisMessage
		{
			get
			{
				return this;
			}
		}
		public string DisplayUserName
		{
			get
			{
				return this.displayUserName_;
			}
		}
		public string DisplayNickName
		{
			get
			{
				return this.displayNickName_;
			}
		}
		public string DisplayRemark
		{
			get
			{
				return this.displayRemark_;
			}
		}
		public string WXUserName
		{
			get
			{
				return this.wXUserName_;
			}
		}
		public string WXNickName
		{
			get
			{
				return this.wXNickName_;
			}
		}
		public string WXRemark
		{
			get
			{
				return this.wXRemark_;
			}
		}
		public uint Type
		{
			get
			{
				return this.type_;
			}
		}
		public uint Status
		{
			get
			{
				return this.status_;
			}
		}
		public string Source
		{
			get
			{
				return this.source_;
			}
		}
		public uint MatchField
		{
			get
			{
				return this.matchField_;
			}
		}
		public string Alias
		{
			get
			{
				return this.alias_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasType && this.hasStatus;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasDisplayUserName)
				{
					num += CodedOutputStream.ComputeStringSize(1, this.DisplayUserName);
				}
				if (this.hasDisplayNickName)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.DisplayNickName);
				}
				if (this.hasDisplayRemark)
				{
					num += CodedOutputStream.ComputeStringSize(3, this.DisplayRemark);
				}
				if (this.hasWXUserName)
				{
					num += CodedOutputStream.ComputeStringSize(4, this.WXUserName);
				}
				if (this.hasWXNickName)
				{
					num += CodedOutputStream.ComputeStringSize(5, this.WXNickName);
				}
				if (this.hasWXRemark)
				{
					num += CodedOutputStream.ComputeStringSize(6, this.WXRemark);
				}
				if (this.hasType)
				{
					num += CodedOutputStream.ComputeUInt32Size(7, this.Type);
				}
				if (this.hasStatus)
				{
					num += CodedOutputStream.ComputeUInt32Size(8, this.Status);
				}
				if (this.hasSource)
				{
					num += CodedOutputStream.ComputeStringSize(9, this.Source);
				}
				if (this.hasMatchField)
				{
					num += CodedOutputStream.ComputeUInt32Size(10, this.MatchField);
				}
				if (this.hasAlias)
				{
					num += CodedOutputStream.ComputeStringSize(11, this.Alias);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private FriendInfo()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] friendInfoFieldNames = FriendInfo._friendInfoFieldNames;
			if (this.hasDisplayUserName)
			{
				output.WriteString(1, friendInfoFieldNames[3], this.DisplayUserName);
			}
			if (this.hasDisplayNickName)
			{
				output.WriteString(2, friendInfoFieldNames[1], this.DisplayNickName);
			}
			if (this.hasDisplayRemark)
			{
				output.WriteString(3, friendInfoFieldNames[2], this.DisplayRemark);
			}
			if (this.hasWXUserName)
			{
				output.WriteString(4, friendInfoFieldNames[10], this.WXUserName);
			}
			if (this.hasWXNickName)
			{
				output.WriteString(5, friendInfoFieldNames[8], this.WXNickName);
			}
			if (this.hasWXRemark)
			{
				output.WriteString(6, friendInfoFieldNames[9], this.WXRemark);
			}
			if (this.hasType)
			{
				output.WriteUInt32(7, friendInfoFieldNames[7], this.Type);
			}
			if (this.hasStatus)
			{
				output.WriteUInt32(8, friendInfoFieldNames[6], this.Status);
			}
			if (this.hasSource)
			{
				output.WriteString(9, friendInfoFieldNames[5], this.Source);
			}
			if (this.hasMatchField)
			{
				output.WriteUInt32(10, friendInfoFieldNames[4], this.MatchField);
			}
			if (this.hasAlias)
			{
				output.WriteString(11, friendInfoFieldNames[0], this.Alias);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasDisplayUserName)
			{
				num ^= this.displayUserName_.GetHashCode();
			}
			if (this.hasDisplayNickName)
			{
				num ^= this.displayNickName_.GetHashCode();
			}
			if (this.hasDisplayRemark)
			{
				num ^= this.displayRemark_.GetHashCode();
			}
			if (this.hasWXUserName)
			{
				num ^= this.wXUserName_.GetHashCode();
			}
			if (this.hasWXNickName)
			{
				num ^= this.wXNickName_.GetHashCode();
			}
			if (this.hasWXRemark)
			{
				num ^= this.wXRemark_.GetHashCode();
			}
			if (this.hasType)
			{
				num ^= this.type_.GetHashCode();
			}
			if (this.hasStatus)
			{
				num ^= this.status_.GetHashCode();
			}
			if (this.hasSource)
			{
				num ^= this.source_.GetHashCode();
			}
			if (this.hasMatchField)
			{
				num ^= this.matchField_.GetHashCode();
			}
			if (this.hasAlias)
			{
				num ^= this.alias_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			FriendInfo friendInfo = value as FriendInfo;
			return friendInfo != null && (this.hasDisplayUserName == friendInfo.hasDisplayUserName && (!this.hasDisplayUserName || this.displayUserName_.Equals(friendInfo.displayUserName_))) && (this.hasDisplayNickName == friendInfo.hasDisplayNickName && (!this.hasDisplayNickName || this.displayNickName_.Equals(friendInfo.displayNickName_))) && (this.hasDisplayRemark == friendInfo.hasDisplayRemark && (!this.hasDisplayRemark || this.displayRemark_.Equals(friendInfo.displayRemark_))) && (this.hasWXUserName == friendInfo.hasWXUserName && (!this.hasWXUserName || this.wXUserName_.Equals(friendInfo.wXUserName_))) && (this.hasWXNickName == friendInfo.hasWXNickName && (!this.hasWXNickName || this.wXNickName_.Equals(friendInfo.wXNickName_))) && (this.hasWXRemark == friendInfo.hasWXRemark && (!this.hasWXRemark || this.wXRemark_.Equals(friendInfo.wXRemark_))) && (this.hasType == friendInfo.hasType && (!this.hasType || this.type_.Equals(friendInfo.type_))) && (this.hasStatus == friendInfo.hasStatus && (!this.hasStatus || this.status_.Equals(friendInfo.status_))) && (this.hasSource == friendInfo.hasSource && (!this.hasSource || this.source_.Equals(friendInfo.source_))) && (this.hasMatchField == friendInfo.hasMatchField && (!this.hasMatchField || this.matchField_.Equals(friendInfo.matchField_))) && (this.hasAlias == friendInfo.hasAlias && (!this.hasAlias || this.alias_.Equals(friendInfo.alias_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<FriendInfo, FriendInfo.Builder>.PrintField("DisplayUserName", this.hasDisplayUserName, this.displayUserName_, writer);
			GeneratedMessageLite<FriendInfo, FriendInfo.Builder>.PrintField("DisplayNickName", this.hasDisplayNickName, this.displayNickName_, writer);
			GeneratedMessageLite<FriendInfo, FriendInfo.Builder>.PrintField("DisplayRemark", this.hasDisplayRemark, this.displayRemark_, writer);
			GeneratedMessageLite<FriendInfo, FriendInfo.Builder>.PrintField("WXUserName", this.hasWXUserName, this.wXUserName_, writer);
			GeneratedMessageLite<FriendInfo, FriendInfo.Builder>.PrintField("WXNickName", this.hasWXNickName, this.wXNickName_, writer);
			GeneratedMessageLite<FriendInfo, FriendInfo.Builder>.PrintField("WXRemark", this.hasWXRemark, this.wXRemark_, writer);
			GeneratedMessageLite<FriendInfo, FriendInfo.Builder>.PrintField("Type", this.hasType, this.type_, writer);
			GeneratedMessageLite<FriendInfo, FriendInfo.Builder>.PrintField("Status", this.hasStatus, this.status_, writer);
			GeneratedMessageLite<FriendInfo, FriendInfo.Builder>.PrintField("Source", this.hasSource, this.source_, writer);
			GeneratedMessageLite<FriendInfo, FriendInfo.Builder>.PrintField("MatchField", this.hasMatchField, this.matchField_, writer);
			GeneratedMessageLite<FriendInfo, FriendInfo.Builder>.PrintField("Alias", this.hasAlias, this.alias_, writer);
		}
		public static FriendInfo ParseFrom(byte[] data)
		{
			return FriendInfo.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private FriendInfo MakeReadOnly()
		{
			return this;
		}
		public static FriendInfo.Builder CreateBuilder()
		{
			return new FriendInfo.Builder();
		}
		public override FriendInfo.Builder ToBuilder()
		{
			return FriendInfo.CreateBuilder(this);
		}
		public override FriendInfo.Builder CreateBuilderForType()
		{
			return new FriendInfo.Builder();
		}
		public static FriendInfo.Builder CreateBuilder(FriendInfo prototype)
		{
			return new FriendInfo.Builder(prototype);
		}
		static FriendInfo()
		{
			FriendInfo.defaultInstance = new FriendInfo().MakeReadOnly();
			FriendInfo._friendInfoFieldNames = new string[]
			{
				"Alias",
				"DisplayNickName",
				"DisplayRemark",
				"DisplayUserName",
				"MatchField",
				"Source",
				"Status",
				"Type",
				"WXNickName",
				"WXRemark",
				"WXUserName"
			};
			FriendInfo._friendInfoFieldTags = new uint[]
			{
				90u,
				18u,
				26u,
				10u,
				80u,
				74u,
				64u,
				56u,
				42u,
				50u,
				34u
			};
			object.ReferenceEquals(micromsg.Proto.FriendInfo.Descriptor, null);
		}
	}
}
